Skip to content

Migrate Docker publishing from Docker Hub to GHCR (actual changes)#2

Merged
chaptersix merged 1 commit intomainfrom
ghcr-migration
Nov 21, 2025
Merged

Migrate Docker publishing from Docker Hub to GHCR (actual changes)#2
chaptersix merged 1 commit intomainfrom
ghcr-migration

Conversation

@chaptersix
Copy link
Owner

Summary

This PR contains the actual code changes for migrating from Docker Hub to GHCR that were missing from PR #1.

Changes Made

Workflow Changes

  • .github/workflows/build-and-publish.yml:

    • Replaced Docker Hub login with GHCR login using GITHUB_TOKEN
    • Removed github.repository_owner == 'temporalio' condition from publish steps
    • Removed Docker Hub secrets from workflow inputs
    • Updated to use dynamic IMAGE_REPO from metadata
  • .github/workflows/goreleaser.yml:

    • Removed Docker Hub secret passing to reusable workflow

Configuration Changes

  • .github/docker/docker-bake.hcl:
    • Changed IMAGE_REPO default from "temporalio" to "ghcr.io/chaptersix"
    • Updated image name from temporal to temporal-cli to match repository name

Result

Images will be published to:

  • ghcr.io/chaptersix/temporal-cli:<short-sha>
  • ghcr.io/chaptersix/temporal-cli:<version>
  • ghcr.io/chaptersix/temporal-cli:latest (non-prerelease only)

- Replace Docker Hub authentication with GHCR using GITHUB_TOKEN
- Update image namespace to ghcr.io/chaptersix/temporal-cli
- Remove repository owner checks to enable publishing from fork
- Remove Docker Hub secrets from workflow configuration
@chaptersix chaptersix merged commit 1a397e1 into main Nov 21, 2025
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant